﻿<sap:ActivityDesigner x:Class="Headsight.BPMN2WF.WF.Activities.UserTaskDesigner"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
                      xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
                      xmlns:Converters="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation">
    <sap:ActivityDesigner.Resources>
        <Converters:ArgumentToExpressionConverter
            x:Key="ArgumentToExpressionConverter"
            x:Uid="swdv:ArgumentToExpressionConverter_1" />
    </sap:ActivityDesigner.Resources>
    <Grid>
        <Border BorderBrush="Black" BorderThickness="2" CornerRadius="10" Background="#FFFDFDE9">
            <Grid ShowGridLines="False">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"  />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition MinHeight="50"/>
                </Grid.RowDefinitions>
                <Image 
                    Grid.Column="0"
                    Grid.Row="1" 
                    Width="32"
                    Height="32"
                    HorizontalAlignment="Right" 
                    VerticalAlignment="Center" 
                    Name="UserIcon" Source="/Headsight.BPMN2WF.WF.Activities;component/Images/User.png" Opacity="1" OverridesDefaultStyle="False" />
                <sapv:ExpressionTextBox Grid.Column="1"
                                        Expression="{Binding Path=ModelItem.Text, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In}" 
                                        OwnerActivity="{Binding Path=ModelItem}"
                                        MinLines="1" 
                                        MaxLines="1" 
                                        MinWidth="50"
                                        HintText="&lt;UserTask...&gt;" Opacity="1" Background="#FFFDFDE9"
                                        HorizontalAlignment="Stretch"
                                        VerticalAlignment="Center">
                    
                </sapv:ExpressionTextBox>
            </Grid>
        </Border>
    </Grid>
</sap:ActivityDesigner>
